@extends('admin.common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />

@endsection

@section('html-body')
    <div id="content">
        <!-- cur-position start -->
        <div id="cur-position">
            <span class="tit">当前位置：</span>
            <a href="#">答题管理</a>
        </div>

        <div class="table-box">
            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>单位</th>
                    <th>姓名</th>
                    <th>联系方式</th>
                    <th>得分</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @if(count($topicAnswer) > 0)
                    @foreach($topicAnswer as $key=>$answers)
                        <tr id="classify_{{$answers->id}}">
                            <td>{{$answers->id}}</td>
                            <td>{{$answers->unit_name}}</td>
                            <td>{{$answers->name}}</td>
                            <td>{{$answers->phone}}</td>
                            <td>{{$answers->score}}</td>
                            <td>
                                <a href="{{route('Admin.Home.topicAnswerWriteList')}}?id={{$answers->id}}" style="color: #ef1414;" >答题详情</a>
                            </td>
                        </tr>
                    @endforeach
                @endif
                </tbody>
            </table>
        </div>
        <div class="pagelist" style="text-align: center;">
            <?php echo $topicAnswer->render(); ?>
        </div>
    </div>

@endsection